GUI Help > Special > drawText

drawText
drawText handle gadget, int x, int y, str text

Description:
Draws text on a canvas gadget using the current font settings and text colour. You can calculate the width and height of space required to draw the text using getTextWidth and getTextHeight.

Return Value:


Parameters:
gadget Handle to a canvas gadget
x X co-ordinate of first character of the text
y Y co-ordinate of the first character of the text
text The text to draw
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)